home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
096
/
listsort.arc
/
LISTSORT.DOC
< prev
next >
Wrap
Text File
|
1985-08-11
|
1KB
|
34 lines
LISTSORT.DOC Version 1.0
This program was designed to sort large (500+ listings) RBBS
directories into alphabetical order for quick reference.
The algorithm is a simple bubble sort except that it only sorts
the first 12 characters of each line (the filename) in memory to
allow manipulation of large files. After the array is in
alphabetical order, every cell of the array is compared to each
line of the source file to find the original line which is then
written to the output file.
Unfortunately, with all the disk reads and writes, this program
is quite slow. I sorted a 1730 file listing which took almost 7
hours! Reading from and writing to a ramdisk speeds up the
process considerably. The best time to run it is while you're
asleep.
The upper limit for directory size is about 2500 files. To go
beyond this you would have to change the source code to read
fewer characters into the array.
To run the compiled program, type LISTSORT. You will then be
asked for input and output drives (where necessary) and
filenames. Be sure to allow approximately as much free file
space as the input file on your output disk.
I hope you find this program useful.
John Tevik
5120 Oakley
Duluth, MN 55804